package jp.aist.gtrc.plus.admission.EDF;

public class CPU implements Comparable {
   public String id;
   public int lastOccupied;
   public String node;

   public CPU(int id) {
      this.id = "" + id;
   }
    
   public CPU(String id) {
      this.id = id;
   }

   public CPU(CPU cpu) {
      this.id = cpu.id;
      this.lastOccupied = cpu.lastOccupied;
   }

   public void setAvailableTime(int t) {
      lastOccupied = t;
   }

   public void setNode(String node) {
      this.node = node;
   }

   public int compareTo(Object another) {
      return this.id.compareTo(((CPU) another).id);
   }

}
